package com.hspedu.poly_.polyparameter_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/23
 * @time 17:19
 */
public class Manager extends Employee {
    private double bonus;

    public Manager(String name, double monthSal, double bonus) {
        super(name, monthSal);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public void manage() {
        System.out.println("manager manage...");
    }

    @Override
    public double getAnnual() {
        return super.getAnnual() + bonus;
    }
}
